using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ITS.Core.Domain.Messaging;
using ITS.DAL.Messaging;

namespace ITS.DAL.Concrete.EF.Messaging
{
    public class EFEmailRepository : IEmailRepository
    {
        private readonly EnterpriseContext context = new EnterpriseContext();
        public EmailAccount GetDefaulEmailAccount()
        {
            return context.EmailAccounts.Single(email => email.UseDefaultCredentials == true);
        }
    }
}
